<template>
  <div class="desc-item-wrapper">
    <div class="desc-header">
      <svg-icon icon-class="stick" class="icon"></svg-icon>
      <div style="flex: 1;">{{ title }}</div>
      <slot name="action"></slot>
    </div>
    <div class="desc-content">
      <slot name="content"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'DescItem',
  props: {
    title: ''
  }
}
</script>

<style scoped lang="scss">
.desc-item-wrapper {
  margin-bottom: 20px;
}

.desc-header {
  height: 40px;
  display: flex;
  align-items: center;
  line-height: 12px;
  background: #FAFAFA;
  border-radius: 6px;
  font-size: 12px;
  padding-left: 10px;
  padding-right: 20px;
  font-family: PingFangSC-Medium, PingFang SC, sans-serif;
  font-weight: 500;
  color: #323232;

  .icon {
    margin-right: 10px;
  }
}

.desc-content {
  padding: 14px 20px;
  border-bottom: 1px dotted #e2e2e2;
  font-size: 12px;
  font-family: PingFangSC-Regular, PingFang SC, sans-serif;
  font-weight: 400;
  color: #323232;
  line-height: 12px;
}
</style>
